<!doctype html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@ include file="/WEB-INF/views-jsp/include/taglib/taglib.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/script/script.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/link/link.jsp" %>
    <script type="text/javascript" src="${path}/html/tablecloth/tablecloth.js"></script>
    <script type="text/javascript" src="${path}/html/js/js-jsp/layout-goback.js"></script>
    <link href="${path}/html/tablecloth/tablecloth.css" rel="stylesheet" type="text/css" media="screen" />
    <style>
        th{ font-weight: normal; }
    </style>
</head>
    <body>
        <div class="place">
            <span>当前位置：</span>
            <ul class="placeul">
                <li><a url="${path}/xboxLog/index.do" iconCls="${param.iconCls}" closable="true">服务日志</a></li>
                <li><a>服务详情</a></li>
            </ul>
        </div>
        <div style="clear: both;">
                <p style="padding-left: 10px;padding-top: 40px">
                    <br>
                    <a href="${requestUrl}" class="easyui-linkbutton" data-options="iconCls:'icon-redo'"
                       style="font-weight: bold;">重发请求</a>
                </p>
                <h3 align="center" style="font-size: 22px; font-weight: bold; margin-top: 15px;">${sessionScope.SERVER_ADMIN_APPSECRET.appKey}服务详情-请求日志明细</h3>
                    <table>
                        <tbody>
                        <tr>
                            <th width="100" style="text-align: right; min-width: 100px; ">请求标识：</th>
                            <td>${xboxLog.id}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">应用KEY：</th>
                            <td>${xboxLog.appKey}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">服务方法：</th>
                            <td>${xboxLog.method}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">服务标题：</th>
                            <td>${requestScope.title}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">服务备注：</th>
                            <td>${requestScope.remark}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">服务版本：</th>
                            <td>${xboxLog.version}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">本地语言：</th>
                            <td>${xboxLog.locale}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">调用方式：</th>
                            <td>${xboxLog.executionType}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">请求方式：</th>
                            <td>${xboxLog.httpAction}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">数据格式：</th>
                            <td>${xboxLog.format}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">sign签名：</th>
                            <td>${xboxLog.sign}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">会话标识：</th>
                            <td>${xboxLog.sessionId}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">用户编号：</th>
                            <td>${xboxLog.sessionUserId}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">会话用户：</th>
                            <td>${xboxLog.sessionUserName}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">手机号码：</th>
                            <td>${xboxLog.sessionPhone}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">应用类型：</th>
                            <td>${xboxLog.callType}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">应用版本：</th>
                            <td>
                                <c:if test="${null != xboxLog.callVersion}">
                                    ${xboxLog.callVersion}
                                </c:if>
                            </td>
                        </tr>
                        <tr>
                            <th style="text-align: right">应用品牌：</th>
                            <td>${xboxLog.appBrand}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right; vertical-align: top; padding-top: 10px ">应用信息：</th>
                            <td style="line-height: 22px;">
                                <c:if test="${null != xboxLog.appBaseInfo}">
                                    <xmp style="font-family: Arial, Helvetica, sans-serif">${xboxLog.appBaseInfo}</xmp>
                                </c:if>
                            </td>
                        </tr>
                        <tr>
                            <th style="text-align: right">应用平台：</th>
                            <td>${xboxLog.client}</td>
                        </tr>
                        <tr>
                            <th width="8%" style="text-align: right">响应代码：</th>
                            <td>${xboxLog.serviceCode}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">响应消息：</th>
                            <td>${xboxLog.serviceMessage}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">调用结果：</th>
                            <td>${xboxLog.executeStatus == 1 ? "<span style='color: green; font-weight: bold'>成功</span>" : "<span style='color: red; font-weight: bold'>失败</span>"}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">执行结果：</th>
                            <td>${xboxLog.serviceCode == 'PC_200' ? "<span style='color: green; font-weight: bold'>成功</span>" : "<span style='color: red; font-weight: bold'>失败</span>"}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">客户端IP：</th>
                            <td>${xboxLog.ip}</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">请求耗时：</th>
                            <td>${xboxLog.duration /1000 } 秒</td>
                        </tr>
                        <tr>
                            <th style="text-align: right">开始时间：</th>
                            <td><fmt:formatDate value="${xboxLog.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                        </tr>
                        <tr>
                            <th style="text-align: right">结束时间：</th>
                            <td><fmt:formatDate value="${xboxLog.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                        </tr>
                        <tr>
                            <th style="text-align: right; vertical-align: top; padding-top: 10px ">业务参数：</th>
                            <td style="line-height: 22px;">
                                <c:if test="${xboxLog.format == 'xml'}">
                                    <xmp style="font-family: Arial, Helvetica, sans-serif">${xboxLog.bindObject}</xmp>
                                </c:if>
                                <c:if test="${xboxLog.format == 'json'}">
                                    <xmp style="font-family: Arial, Helvetica, sans-serif">${xboxLog.bindObject}</xmp>
                                </c:if>
                            </td>
                        </tr>
                        <tr id="outputTR">
                            <th style="text-align: right; vertical-align: top; padding-top: 10px">输出内容：</th>
                            <td style="line-height: 22px;">
                                <c:if test="${xboxLog.format == 'xml'}">
                                    <xmp style="font-family: Arial, Helvetica, sans-serif">${xboxLog.output}</xmp>
                                </c:if>
                                <c:if test="${xboxLog.format == 'json'}">
                                    <xmp style="font-family: Arial, Helvetica, sans-serif">${xboxLog.output}</xmp>
                                </c:if>
                            </td>
                        </tr>
                        <tr>
                            <th style="text-align: right; vertical-align: top; padding-top: 10px">异常信息：</th>
                            <td style="line-height: 22px;">
                                <xmp style="font-family: Arial, Helvetica, sans-serif">${xboxLog.exception}</xmp>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
        </div>
    </body>
</html>